<?php

// Model:'SinhVien' - Database Table: 'sinh_vien'

Class SinhVien extends Eloquent
{

    protected $table='sinh_vien';

    public function danhgiasv()
    {
        return $this->hasMany('DanhGiaSv');
    }

    public function nhomdangki()
    {
        return $this->hasMany('NhomDangKi');
    }

    public function lop()
    {
        return $this->belongsTo('Lop');
    }

    public function nguoidung()
    {
        return $this->belongsTo('NguoiDung');
    }

}